package cn.wx.jove.core.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import cn.wx.common.persistence.base.BaseEntity;

/**
 * <p>
 * 
 * </p>
 *
 * @author
 * @since 2018-12-03
 */
@TableName("stockdatafromtl")
public class Stockdatafromtl extends BaseEntity {

	@TableId(value = "nid", type = IdType.AUTO)

	private Integer nid;

	private String industrydecline5;

	/*@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")*/
	private Date currenttime;

	private String sh;

	private String sz;

	private String cy;

	private String zx;

	private String Industrygains5;

	private String downup;

	private String downuplimit;

	public Integer getNid() {
		return nid;
	}

	public void setNid(Integer nid) {
		this.nid = nid;
	}

	public String getIndustrydecline5() {
		return industrydecline5;
	}

	public void setIndustrydecline5(String industrydecline5) {
		this.industrydecline5 = industrydecline5;
	}

	public Date getCurrenttime() {
		Calendar c = Calendar.getInstance(TimeZone.getTimeZone("GMT+8"));  
        c.setTime(currenttime);  
		return c.getTime();
	}

	public void setCurrenttime(Date currenttime) {
		this.currenttime = currenttime;
	}

	public String getSh() {
		return sh;
	}

	public void setSh(String sh) {
		this.sh = sh;
	}

	public String getSz() {
		return sz;
	}

	public void setSz(String sz) {
		this.sz = sz;
	}

	public String getCy() {
		return cy;
	}

	public void setCy(String cy) {
		this.cy = cy;
	}

	public String getZx() {
		return zx;
	}

	public void setZx(String zx) {
		this.zx = zx;
	}

	public String getIndustrygains5() {
		return Industrygains5;
	}

	public void setIndustrygains5(String Industrygains5) {
		this.Industrygains5 = Industrygains5;
	}

	public String getDownup() {
		return downup;
	}

	public void setDownup(String downup) {
		this.downup = downup;
	}

	public String getDownuplimit() {
		return downuplimit;
	}

	public void setDownuplimit(String downuplimit) {
		this.downuplimit = downuplimit;
	}

	@Override
	public String toString() {
		return "Stockdatafromtl{" + ", nid=" + nid + ", industrydecline5=" + industrydecline5 + ", currenttime="
				+ currenttime + ", sh=" + sh + ", sz=" + sz + ", cy=" + cy + ", zx=" + zx + ", Industrygains5="
				+ Industrygains5 + ", downup=" + downup + ", downuplimit=" + downuplimit + "}";
	}
}
